package org.nicocube.airain.utils.config;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Map;

class ConfigProviderImpl extends ConfigProvider {

	@Override
	public Config provide(File file) throws FileNotFoundException, IOException {
		return new FileConfig(file);
	}

	@Override
	public Config provide(Map<String, String> m) {
		return new MapConfig(m);
	}

	@Override
	public Config provide(String filename) throws FileNotFoundException,IOException {
		return provide(new File(filename));
	}

}
